Ext.define('APP.controller.Teachers',{
      extend : 'Ext.app.Controller',
      alias : ['widget.teachers'],
      views : ['teacher.List','teacher.Edit'],
      stores: ['Teachers'],
      models: ['Teacher'],
      refs : [],
      init : function(){
      	     this.control({
	            'teacherlist': {
	                itemdblclick: this.editUser
	            }
	        });
      },
       editUser: function(grid, record) {
		 var view = Ext.widget('teacheredit');
		 view.down('form').loadRecord(record);
    }

});